This plug-in has a simple and cross platform way to execute a script when data has been received. This is done via a Dispatch Script. If you want this functionality you need to implement the Dispatch functions in
your own database. See this file how this can be done.
Press on the "Start receiving" script. This tells the plug-in that the Dispatch Script can be called from the keyboard with control-1
(Windows) or command-1 (Mac).
This is what happens when data arrives:
- the plug-in will b
ring the database file to the front and simulate a press on the keyboard:control-1(Windows) or command-1(Mac)
- this will start the Dispatch Script, which can handle the receiving of the data.
NOTE You can still use the Dispatch Script for other actions, so this doesn't cost a place in the script menu. That's why we call it Dispatch Scripting: when called it determines if it was called because there was data
received and if yes it will dispatch the processing to another script.
Start Receiving
To Main Menu
ReceiverB
error codeo
To Dispatch Menup
Receive via Dispatch Scriptingu
start receiving
mesReceived
set preferences
AiData received from the serial
port will be put into the mesReceived with the help of the Dispatch Script.
PreferencesB
Open the serial port
NO CARRIER
To Main Menu
To Dispatch Menu
To Preferences
----- General ------
%Check for Presence of Serial plug-in
----- Dispatch Scripting
------
*Open Serial Port And Prepare for Receiving
Open Serial Port
Set Dispatcher Script
Process Data Received
, Receive Data in global gTempResultReceived
Reset Dispatcher Script
Close Serial Port
----- Misc ------
Open file
Set all globals
BeepBeep
Open Serial Port
To Dispatch Menu
speed
port name
stop bits
data bits
To Dispatch Menu
speed
port name
stop bits
data bits
parity
standard flow control
advanced flow control
")Only use advanced control if you need to.
flow control
Set Serial Port Preferences
gAdvancedFlowControl
Start Receiving
To Main Menu
|("Serial-DataWasReceived"
Serial-DataWasReceived
----- Dispatch Scripting
------
A%Check for Presence of Serial plug-in
A4Important: ALWAYS check if the plug-in is available!
Open the serial portB
|("Serial-Open"
] & "|" &
W & " " &
_ & " " &
` & " " &
a & " "&
Serial-Open
<> 0
= "$$-97"
$$-97
Cancelm
mPort is in useFw
Cancelm
mAn error occurred
Set all globals
|("Troi-Set Default Separator"
"|")
Troi-Set Default Separator
A Open file
) = 2
----- General ------
----- Misc ------
BeepBeep
Close Serial Port
Open the serial portB<
|("Serial-Close"
Serial-Close
To Preferences
B)Check if this is FileMaker 4.0 or higher.CQ
1)) < 4
Canceld
This file requires FileMaker 4.0 or higherE/Check if the Troi Grabber Plug-in is available.F|
|("Serial-Version"
"")
14 ) <> "Serial Plug-in"
Serial-Version
Serial Plug-in
) = 1
Canceld
The Serial Plug-in not found.
Please put The Serial Plug-in into the Extensions folder inside the FileMaker folder. Also enable all the plug-ins under the application preferences.
Canceld
The Serial Plug-in not found. Please put the this Plug-in into the SYSTEM directory inside the FileMaker directory.
Also enable all the plug-ins under the application preferences.
Helvetica
Geneva
Arial
Times New Roman
Monaco
Courier
Times
Futura
Courier New
Palatino
Minion Web
New York
AppleGaramond Bk
AppleGaramond Lt
Set Dispatcher Script
|("Serial-SetDispatchScript"
) & "| scriptkey=1")
Serial-SetDispatchScript
| scriptkey=1
Process Data Received
|("Serial-RestoreSituation"
Serial-RestoreSituation
A, Receive Data in global gTempResultReceived
|("Serial-Receive"
Serial-Receive
2 ) = "$$"
^ = "$$-28"
$$-28
Cancel
Open the port firstE-
^ = "$$-207"
$$-207
Cancel
Buffer overflow error.Gx
Cancel
An error occurred!
Reset Dispatcher Script
|("Serial-SetDispatchScript"
"")
Serial-SetDispatchScript
A*Open Serial Port And Prepare for Receiving
Open the serial port
To Dispatch Menu
HRPTH
FPTHAHKES:Projecten:Troi FM Plug-In:GRAB:Troi-Grabber-Plug-in1.0a1:StudReg.fp3
MSPCA
NAMEA
StudReg.fp3
RPTHA
StudReg.fp3
StudReg.fp3
FMP3FMP3
Troi-Grabber-Plug-in1.0a1
HKES:Projecten:Troi FM Plug-In:GRAB:Troi-Grabber-Plug-in1.0a1:StudReg.fp3
Ethernet zone
McGee
peter
ONML""
ONML""
ONML""
(LIST
LISTA
baud=150
baud=300
baud=600
baud=1200
baud=1800
baud=2400
baud=3600
baud=4800
baud=7200
baud=9600
baud=14400
baud=19200
baud=28800
baud=38400
baud=57600
VDEFA(
(LIST
VDEFA(
(LIST
LISTA
stop=10
stop=15
stop=20
VDEFA(
(LIST
LISTA
data=5
data=6
data=7
data=8
VDEFA(
(LIST
LISTA"parity=none
parity=odd
parity=even
VDEFA(
(LIST
LISTA:flowControl=DtrDsr
flowControl=RtsCts
flowControl=XOnXOff
PRPTH
FPTHAPKES:Projecten:Troi FM Plug-In:GRAB:Troi-Grabber-Plug-in1.0a1:samples:StudReg.fp3
MSPCA
NAMEA
StudReg.fp3
RPTHA
:samples:StudReg.fp3
StudReg.fp3
FMP3FMP3
samples
PKES:Projecten:Troi FM Plug-In:GRAB:Troi-Grabber-Plug-in1.0a1:samples:StudReg.fp3
Ethernet zone
McGee
peter
NRPTH
FPTHANKES:Projecten:Troi FM Plug-In:GRAB:Troi-Grabber-Plug-in1.0b1:docs:Overview.fp3
MSPCA
NAMEA
Overview.fp3
RPTHA
:docs:Overview.fp3
Overview.fp3
FMP3FMP3
NKES:Projecten:Troi FM Plug-In:GRAB:Troi-Grabber-Plug-in1.0b1:docs:Overview.fp3